package com.groupseven.happycampus.common.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description excel 中的数据类型
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MenuBo {


    @ExcelProperty(value = "菜品编号")  //index指定属性在第几列，默认通过value属性顺序
    private String id;

    @ExcelProperty(value = "菜名")  //index指定属性在第几列，默认通过value属性顺序
    private String cuisineName;

    @ExcelProperty(value = "所需肉类")
    private String meat;

    @ExcelProperty(value = "所需西红柿")
    private String tomato;

    @ExcelProperty(value = "所需白菜")
    private String cabbage;

    @ExcelProperty(value = "所需萝卜")
    private String carrot;

    @ExcelProperty(value = "价格")
    private String price;

    @ExcelProperty(value = "打印时间")
    @DateTimeFormat("yyyy/MM/dd")  //设定文件导出时 的时间格式
    private  Date date = new Date();
}
